<app-child-comp [item]="curret" [name]="name" [age]="age" (newItemEvent)="addItem($event)"></app-child-comp>
<ul>
    <li *ngFor="let item of items">{{item}}</li>
</ul>
<hr>

<button   (click)="dec()">-</button>
<button   (click)="inc()">+</button>
<br>
<label [style.font-size.px]="size">FontSize:{{size}}px</label>
<br>
<input type="text" [(ngModel)]="inputVal"/>

<p>inputVal is {{inputVal}}</p>
<br>
<form>
    <input type="text" [(ngModel)]="formName" name="formName"/>
    <br>
    <input type="text" [(ngModel)]="formAge" name="formAge"/>
    <p>{{formName}} 今年 {{formAge}}岁了</p>
</form>
<br>
<form>
    <input type="text" [ngModel]="expandVal" (ngModelChange)="expandVal=$event" name="expandVal"/>
    <br>
    <p>expandVal is {{expandVal}}</p>
</form>
<hr>

